<template>
  <div id="app">
  	<!--<input type="text" v-model="userInfo.accountName" />
  	<input type="password" v-model="userInfo.password" />-->
  <!--  <button @click="signin">登录</button>-->
    <router-view/>
  </div>
</template>

<script >
	export default{
		mounted(){
			window.onbeforeunload=function(e){
				//判断是否记住用户登录信息，获取remember，三目运算转换字符串为布尔型
					var remember=localStorage.getItem("remember")=="false"?false:true;
					//不记住时，取反为真，进入执行清除登录记录
					if(!remember){
						localStorage.clear();
					}
			}
		}
//		created(){
//			console.log("基础路径"+this.$api.signin);
//		},
//		data(){
//			return{
//				userInfo:{}
//			}
//		},
//		methods:{
//			signin(){
////				(url,data,config)
//				this.$http.post(this.$api.signin,this.userInfo)
//				.then((response)=>{
//					return response;
//				})
//			}
//		}

	}
</script>

<style lang="scss">
#app {
 				position: absolute;
 				left: 0;
 				top: 0;
 				right: 0;
 				bottom: 0;
 				background: white;
}

</style>
